<?php
ob_start();
session_start();
include("../ketnoi.php");
header('Content-Type: text/html; charset=UTF-8');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>rao vặt</title>
<!-- TemplateEndEditable -->
<link rel="stylesheet" type="text/css" href="../PresentationTier/css/top.css"/>
<link rel="stylesheet" type="text/css" href="../PresentationTier/css/header.css"/>
<link rel="stylesheet" type="text/css" href="../PresentationTier/css/contact.css"/>
<link rel="stylesheet" type="text/css" href="../PresentationTier/css/menutab.css"/>
<link rel="stylesheet" type="text/css" href="../PresentationTier/css/navigation.css"/>
<link rel="stylesheet" type="text/css" href="../PresentationTier/css/leftcontent.css"/>
<link rel="stylesheet" type="text/css" href="../PresentationTier/css/centercontent.css"/>
<link rel="stylesheet" type="text/css" href="../PresentationTier/css/rightcontent.css"/>
<link rel="stylesheet" type="text/css" href="../PresentationTier/css/footer.css"/>
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
</head>

<body>
 	<div class="main">
 		<!--Top: Start-->   
    	<div class="top">
    		<div class="language">
            	<div>Languages: </div>
                <a href="#"><img src="../PresentationTier/image/en.gif" alt="EN"/></a>
                <a href="#"><img src="../PresentationTier/image/de.gif" alt="DE"/></a>
            </div>   
            <div class="search">
            	<div class="search_text">
                	<a href="#"> AvandS</a>
                </div>
                    <input type="text" class="search_input" name="search" />
                    <input type="image" src="../PresentationTier/image/search.gif" class="search_bt"  />
               
            </div> 
               
        </div>
        <!--Top: end-->
        <!-- header: start -->
        <div class="header">
        	<div id="logo">
        	  <p><img src="../PresentationTier/image/logo.png" alt="image" /></p>
        	</div>
          <div class="slider">
            	<div class="top_devider"><img src="../PresentationTier/image/header_divider.png" alt="image" /></div>
            <div class="slide_content">
                	<div class="content">
                    	<img src="../PresentationTier/image/laptop.png" alt="image" class="slide_img" />
                   	  <div class="slide_details">
                        	<div class="slide_titels">SamSung GX 2000 LM </div>
                            <div class="slide_text">cong hoa xa hoi chu nghia viet nam doc lap tu do hanh phuc</div>
                        <a href="#" class="details">details</a>
                      </div>
                    </div>
                    <div class="clr"></div>
              <div class="bagination">
                   	  <span class="current">1</span>
                        <a href="#">2</a>
                        <a href="#">3</a>
                        <a href="#">4</a>
                        <a href="#">5</a>
                        
                    </div>
                  <p>&nbsp;</p>
              </div>
                <div class="top_devider"><img src="../PresentationTier/image/header_divider.png" alt="image" /></div>
                
          </div>
        </div>
        	
        <!--header:end-->
        <div class="clr"></div><!--*xóa đi phần float left, float right*/--> 
        <!--content:start-->
        
        <div class="content">
        	<!--menu tap -->
        	<div id="menu_tap">
           	  <div class="left_menu_coner"></div>
                <ul class="menu">
                	<li ><a href="#" id="nav_hom">Trang Chủ</a></li>
                    <li class="divider"></li>
                    <li><a href="#" id="nav_pro">Đăng Tin</a></li>
                    <li class="divider"></li>
                    <li><a href="#" id="nav_spe">Tìm Rao V</a></li>
                    <li class="divider"></li>
                    <li><a href="#" id="nav_acc">My Acount</a></li>
                    <li class="divider"></li>
                    <li><a href="#" id="nav_sig">Sign up</a></li>
                    <li class="divider"></li>
                    <li><a href="#" id="nav_shi">Trợ Giúp</a></li>
                    <li class="divider"></li>
                    <li><a href="#" id="nav_con">Contact us</a></li>
                    <li class="divider"></li>
                    <li class="curencies">Currencies
                    	<select>
                        	<option>Us dollar</option>
                            <option>Euro</option>
                        </select>
                    </li> 
                </ul>
                <div class="right_menu_coner"></div>
          		 
            </div>
          	<!--navigation-->
            <div class="navigation">Navigation:<span class="current">Home</span>
            </div>
               
             <!--left content-->
             <div class="left_content">
              	  <!--categorie-->
                  <div class="title_box">Sản Phẩm</div>
                 <ul class="left_menu">
                    <li class="odd"><a href="#">Máy Tính</a></li>
                    <li class="even"><a href="#">Điện Thoại</a></li>
                    <li class="odd"><a href="#">Nội Thất - Nhà Đất</a></li>
                    <li class="even"><a href="#">Ô Tô - Xe Máy</a></li>
                    <li class="odd"><a href="#">Linh Kiện Điện Tử</a></li>
                    <li class="even"><a href="#">Quần Áo</a></li>
                    <li class="odd"><a href="#">Processors</a></li>
                    <li class="even"><a href="#">Processors</a></li>
                     <li class="odd"><a href="#">Processors</a></li>
                    <li class="even"><a href="#">Processors</a></li>
                    <li class="odd"><a href="#">Processors</a></li>
                    <li class="even"><a href="#">Processors</a></li>
                     <li class="odd"><a href="#">Sản Phẩm Khác</a></li>
                 </ul>
                     <!--tìm kiếm-->
                   <div class="title_box">Tìm Kiếm Nhanh</div>
                     <div class="boder_box">
                       <form action="" method="post">
                                <div class="form_tk">
                                    <input name="tensp_input" class="tensp_input" value="Tên Sản Phầm" style="width:70%" />
                                </div>
                               <div class="form_tk">
                                    <select name="tensanpham" id="tsp" style="width:70%" >
                                        <option value="tsp">Loại Sản Phầm</option>
                                    </select>
                               </div>
                               <div class="form_tk">
                                    <select name="diaphuong" id="dp" style="width:70%">
                                            <option value="tsp">Vùng Miền</option>
                                     </select>
                               </div>
                                 <div class="form_tk">
                                   <select name="giatu" id="giatu" style="width:70%">
                                            <option value="giatu">Giá Từ</option>
                                   </select>
                                 </div>
                                 <div class="form_tk">
                                   <select name="giaden" id="giaden" style="width:70%">
                                            <option value="giaden">Giá đến</option>
                                   </select>
                                 </div>
                                 <div class="form_tk">
                                   <input type="submit" value="Tìm Kiếm" class="bt_tk" />                                
                                 </div>
                                 
                   </form>  
                </div>
              
                      
                 <!--special product-->
                   <div class="title_box">Special Product</div>
                     <div class="boder_box">
                        <div class="product_title"><a href="#">Motorola GX440</a></div>
                        <div class="product_image"><a href="#"><img src="../PresentationTier/image/laptop.png" alt="laptop" /></a></div>
                        <div class="product_price">
                            <span class="reduce">350$</span>
                            <span class="price">270$</span>
                       </div>
                     </div>
                 <!--newletter-->
                   <div class="title_box">Chat Online</div>
                     <div class="boder_box">
                      <input type="text" name="newletters" class="newletters_input" value="Your Email" />
                      <a href="#" class="join">join</a>    
                     </div>
                   <!--banner-->
                    <div class="banner_adds">
                    <a href="#"><img src="../PresentationTier/image/bann2.jpg" alt="Banner" /></a>
                    </div>
            </div>
            <!--center content--><!-- TemplateBeginEditable name="EditRegion3" -->
            <div class="center_content">
              <div class="center_title_bar">Latest Product</div>
              <!--product-->
              <div class="prod_box">
                <div class="top_prod_box"></div>
                <div class="center_prod_box">
                  <div class="product_title"><a href="#">Motorola GX440</a></div>
                  <div class="product_image"><a href="#"><img src="../PresentationTier/image/laptop.png" alt="laptop" /></a></div>
                  <div class="product_price"> <span class="reduce">350$</span> <span class="price">270$</span> </div>
                </div>
                <div class="bottom_prod_box"></div>
                <div class="prod_detils_tab"> <a href="#" title="Add to cart"><img src="../PresentationTier/image/car.png" alt="cart" class="left_bt" /></a> <a href="#" title="Specials"><img src="../PresentationTier/image/favs.png" alt="Special" class="left_bt" /></a> <a href="#" title="Gift"><img src="../PresentationTier/image/favorites.gif" alt="Gift" class="left_bt" /></a> <a href="#" class="prod_details">details</a> </div>
              </div>
              <!--product-->
              <div class="prod_box">
                <div class="top_prod_box"></div>
                <div class="center_prod_box">
                  <div class="product_title"><a href="#">Motorola GX440</a></div>
                  <div class="product_image"><a href="#"><img src="../PresentationTier/image/p4.gif" alt="laptop" /></a></div>
                  <div class="product_price"> <span class="reduce">350$</span> <span class="price">270$</span> </div>
                </div>
                <div class="bottom_prod_box"></div>
                <div class="prod_detils_tab"> <a href="#" title="Add to cart"><img src="../PresentationTier/image/car.png" alt="cart" class="left_bt" /></a> <a href="#" title="Specials"><img src="../PresentationTier/image/favs.png" alt="Special" class="left_bt" /></a> <a href="#" title="Gift"><img src="../PresentationTier/image/favorites.gif" alt="Gift" class="left_bt" /></a> <a href="#" class="prod_details">details</a> </div>
              </div>
              <!--product-->
              <div class="prod_box">
                <div class="top_prod_box"></div>
                <div class="center_prod_box">
                  <div class="product_title"><a href="#">Motorola GX440</a></div>
                  <div class="product_image"><a href="#"><img src="../PresentationTier/image/p5.gif" alt="laptop" /></a></div>
                  <div class="product_price"> <span class="reduce">350$</span> <span class="price">270$</span> </div>
                </div>
                <div class="bottom_prod_box"></div>
                <div class="prod_detils_tab"> <a href="#" title="Add to cart"><img src="../PresentationTier/image/car.png" alt="cart" class="left_bt" /></a> <a href="#" title="Specials"><img src="../PresentationTier/image/favs.png" alt="Special" class="left_bt" /></a> <a href="#" title="Gift"><img src="../PresentationTier/image/favorites.gif" alt="Gift" class="left_bt" /></a> <a href="#" class="prod_details">details</a> </div>
              </div>
              <!--product-->
              <div class="prod_box">
                <div class="top_prod_box"></div>
                <div class="center_prod_box">
                  <div class="product_title"><a href="#">Motorola GX440</a></div>
                  <div class="product_image"><a href="#"><img src="../PresentationTier/image/laptop.png" alt="laptop" /></a></div>
                  <div class="product_price"> <span class="reduce">350$</span> <span class="price">270$</span> </div>
                </div>
                <div class="bottom_prod_box"></div>
                <div class="prod_detils_tab"> <a href="#" title="Add to cart"><img src="../PresentationTier/image/car.png" alt="cart" class="left_bt" /></a> <a href="#" title="Specials"><img src="../PresentationTier/image/favs.png" alt="Special" class="left_bt" /></a> <a href="#" title="Gift"><img src="../PresentationTier/image/favorites.gif" alt="Gift" class="left_bt" /></a> <a href="#" class="prod_details">details</a> </div>
              </div>
              <!--product-->
              <div class="prod_box">
                <div class="top_prod_box"></div>
                <div class="center_prod_box">
                  <div class="product_title"><a href="#">Motorola GX440</a></div>
                  <div class="product_image"><a href="#"><img src="../PresentationTier/image/p4.gif" alt="laptop" /></a></div>
                  <div class="product_price"> <span class="reduce">350$</span> <span class="price">270$</span> </div>
                </div>
                <div class="bottom_prod_box"></div>
                <div class="prod_detils_tab"> <a href="#" title="Add to cart"><img src="../PresentationTier/image/car.png" alt="cart" class="left_bt" /></a> <a href="#" title="Specials"><img src="../PresentationTier/image/favs.png" alt="Special" class="left_bt" /></a> <a href="#" title="Gift"><img src="../PresentationTier/image/favorites.gif" alt="Gift" class="left_bt" /></a> <a href="#" class="prod_details">details</a> </div>
              </div>
              <!--product-->
              <div class="prod_box">
                <div class="top_prod_box"></div>
                <div class="center_prod_box">
                  <div class="product_title"><a href="#">Motorola GX440</a></div>
                  <div class="product_image"><a href="#"><img src="../PresentationTier/image/p5.gif" alt="laptop" /></a></div>
                  <div class="product_price"> <span class="reduce">350$</span> <span class="price">270$</span> </div>
                </div>
                <div class="bottom_prod_box"></div>
                <div class="prod_detils_tab"> <a href="#" title="Add to cart"><img src="../PresentationTier/image/car.png" alt="cart" class="left_bt" /></a> <a href="#" title="Specials"><img src="../PresentationTier/image/favs.png" alt="Special" class="left_bt" /></a> <a href="#" title="Gift"><img src="../PresentationTier/image/favorites.gif" alt="Gift" class="left_bt" /></a> <a href="#" class="prod_details">details</a> </div>
              </div>
              <div class="center_title_bar">Recomended Product</div>
              <!--product-->
              <div class="prod_box">
                <div class="top_prod_box"></div>
                <div class="center_prod_box">
                  <div class="product_title"><a href="#">Motorola GX440</a></div>
                  <div class="product_image"><a href="#"><img src="../PresentationTier/image/laptop.png" alt="laptop" /></a></div>
                  <div class="product_price"> <span class="reduce">350$</span> <span class="price">270$</span> </div>
                </div>
                <div class="bottom_prod_box"></div>
                <div class="prod_detils_tab"> <a href="#" title="Add to cart"><img src="../PresentationTier/image/car.png" alt="cart" class="left_bt" /></a> <a href="#" title="Specials"><img src="../PresentationTier/image/favs.png" alt="Special" class="left_bt" /></a> <a href="#" title="Gift"><img src="../PresentationTier/image/favorites.gif" alt="Gift" class="left_bt" /></a> <a href="#" class="prod_details">details</a> </div>
              </div>
              <!--product-->
              <div class="prod_box">
                <div class="top_prod_box"></div>
                <div class="center_prod_box">
                  <div class="product_title"><a href="#">Motorola GX440</a></div>
                  <div class="product_image"><a href="#"><img src="../PresentationTier/image/p4.gif" alt="laptop" /></a></div>
                  <div class="product_price"> <span class="reduce">350$</span> <span class="price">270$</span> </div>
                </div>
                <div class="bottom_prod_box"></div>
                <div class="prod_detils_tab"> <a href="#" title="Add to cart"><img src="../PresentationTier/image/car.png" alt="cart" class="left_bt" /></a> <a href="#" title="Specials"><img src="../PresentationTier/image/favs.png" alt="Special" class="left_bt" /></a> <a href="#" title="Gift"><img src="../PresentationTier/image/favorites.gif" alt="Gift" class="left_bt" /></a> <a href="#" class="prod_details">details</a> </div>
              </div>
              <!--product-->
              <div class="prod_box">
                <div class="top_prod_box"></div>
                <div class="center_prod_box">
                  <div class="product_title"><a href="#">Motorola GX440</a></div>
                  <div class="product_image"><a href="#"><img src="../PresentationTier/image/p5.gif" alt="laptop" /></a></div>
                  <div class="product_price"> <span class="reduce">350$</span> <span class="price">270$</span> </div>
                </div>
                <div class="bottom_prod_box"></div>
                <div class="prod_detils_tab"> <a href="#" title="Add to cart"><img src="../PresentationTier/image/car.png" alt="cart" class="left_bt" /></a> <a href="#" title="Specials"><img src="../PresentationTier/image/favs.png" alt="Special" class="left_bt" /></a> <a href="#" title="Gift"><img src="../PresentationTier/image/favorites.gif" alt="Gift" class="left_bt" /></a> <a href="#" class="prod_details">details</a> </div>
              </div>
            </div>
            <!-- TemplateEndEditable --><!--right content-->
 	       <div class="right_content">
           		<!--shopping car-->
            	<div class="shopping_cart"> 
                	<div class="cart_title">Shopping cart</div>
                    <div class="cart_details">
                    	3 items<br />
                        <span class="border_cart"></span>
                        Total: <span class="price">350$</span>
                    </div>
                    <div class="cart_icon">
                    	<a href="#"><img src="../PresentationTier/image/shoppingcart.png" alt="checkout"/></a>
                    </div>
                
                </div>
                 <!--newletter-->
                   <div class="title_box">Đăng Nhập</div>
                     <div class="boder_box">
                     	
                        <?php
						if (!$_SESSION["idMaND"])
						{
						 include("../PresentationTier/dangnhap.php");
                        }
                        else
						{
							 
						$lenh2="select * from nguoidung where MaND='".$_SESSION["idMaND"]."'";
						$kq2=mysql_query($lenh2);
						$row2=mysql_fetch_assoc($kq2);
						$row=mysql_fetch_row($kq2);
						$idtenhienthi=$row2["TenHienThi"];
					   $idlevel=$row2["MaLevel"];
					   if($idlevel==5)
					   {
							echo "chào ".$idtenhienthi;
							?>
							 <div>
							 <a href="#">Quản Trị</a> ;
							 <a href="../PresentationTier/thoat.php">Thoát</a>;
							 </div>
							 <?php
					   }
					   else
					   {	 
						   echo "chào ".$idtenhienthi;
							?>
							 <div>
							 <a href="#">My Accout</a> ;
							 <a href="../PresentationTier/thoat.php">Thoát</a>;
							 </div>
							 <?php
					   }
					}
					
					?>
                     </div>
                   
                   
               <!--what new-->
                 <div class="title_box">What's New</div>
                     <div class="boder_box">
                        <div class="product_title"><a href="#">Motorola GX440</a></div>
                        <div class="product_image"><a href="#"><img src="../PresentationTier/image/p2.gif" alt="laptop" /></a></div>
                        <div class="product_price">
                            <span class="reduce">350$</span>
                            <span class="price">270$</span>
                       </div>
                     </div>
                <!--Menufactures-->
                  <div class="title_box">Địa Phương</div>
                 <ul class="left_menu">
                    <li class="odd"><a href="#">Hà Nội</a></li>
                    <li class="even"><a href="#">TP Hồ Chí Minh</a></li>
                    <li class="odd"><a href="#">Tây Bắc</a></li>
                    <li class="even"><a href="#">Đông Bắc</a></li>
                    <li class="odd"><a href="#">Bắc Trung Bộ</a></li>
                    <li class="even"><a href="#">Nam Trung Bộ</a></li>
                    <li class="odd"><a href="#">Tây Nguyên</a></li>
                    <li class="even"><a href="#">Nam Bộ</a></li>
          
                 </ul> 
                 <!--banner-->
                   <div class="banner_adds">
                    <a href="#"><img src="../PresentationTier/image/bann1.jpg" alt="Banner" /></a>
             </div>
          </div>
            
        </div>
        <!--Content end-->
        <div class="clr"></div><!--*xóa đi phần float left, float right*/--> 
        <!--footer-->
        <div class="footer">
        	<div class="left_footer">
        		<img src="../PresentationTier/image/footer_logo.png" alt="footer logo" />
        	</div>
            <div class="center_footer">
            	Template name.All Rights Reserver 2013 </br>
              	<a href="#"><img src="../PresentationTier/image/csscreme.jpg" alt="template" /></a></br>
                <img src="../PresentationTier/image/payment.gif" alt="pay" />
        
        	</div>
            <div class="right_footer">
        		<a href="#">Home</a>
                <a href="#">about</a>
                <a href="#">sitemap</a>
                <a href="#">css</a>
                <a href="#">contact us</a>
        	</div>
        </div>
        
    </div>
    
</body>
</html>
